<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>


    <style>
        .content {
            border: 1px solid #000;
            height: 800px;
            padding: 20px;
        }

        .left {
            width: 200px;
            height: 100%;
            background: red;
            float: left;
        }

        .right {
            height: 100%;
            background: pink;

        }
    </style>

</head>
<body>
<!--
    对于两个盒子，实现左边固定宽度，右边自适应


        相对定位：相对于自己
        绝对定位：相对于父级元素
-->

<div class="content">
    <div class="left"></div>
    <div class="right">right</div>
</div>
</body>
</html>
